<include file="header"/>
<body class="bg-grey">
<div class="wraper">
        <!--<input type="hidden" name="get_home_ownership" value="" id="get_home_ownership">
        <input type="hidden" name="get_wages" value="" id="get_wages">
        <input type="hidden" name="get_experience" value="" id="get_experience">
        <input type="hidden" name="get_age" value="" id="get_age">
        <input type="hidden" name="get_tag" value="" id="get_tag">-->
    <form action="/Park/huser/resultlist" method="post" id="is_form">
        <input type="hidden" value="" id="so_native_place" name='so_native_place'><!--籍贯-->
        <input type="hidden" value="" id="so_wages" name='so_wages'><!--工资-->
        <input type="hidden" value="" id="so_experience" name='so_experience'><!--经验-->
        <input type="hidden" value="" id="so_age" name='so_age'><!--年龄-->
        <input type="hidden" value="" id="so_capacity" name='so_capacity'><!--能力-->
        <input type="hidden" value="{BEESCRM:$getData.isCooke}"  name='isCooke'><!--能力-->
        <input type="hidden" value="{BEESCRM:$getData.beginTime}"  name='beginTime'><!--能力-->
        <input type="hidden" value="{BEESCRM:$getData.endTime}"  name='endTime'><!--能力-->
    </form>
     <div class="tab-box tab-filter clearfix">
         <if condition="$home_ownership">
             <a href="javascript:void(0);" class="tab-list" id="home_ownership">{BEESCRM:$home_ownership}<span class="iconfont icon-xiala"></span></a>
             <else/>
             <a href="javascript:void(0);" class="tab-list" id="home_ownership">籍贯<span class="iconfont icon-xiala"></span></a>
         </if>

        <a href="javascript:void(0);" class="tab-list" id="isWages">工资<span class="iconfont icon-xiala"></span></a>
        <a href="javascript:void(0);" class="tab-list" id="isExperience">经验<span class="iconfont icon-xiala"></span></a>
        <a href="javascript:void(0);" class="tab-list" id="isAge">年龄<span class="iconfont icon-xiala"></span></a>
        <a href="javascript:void(0);" class="tab-list" id="istag">能力<span class="iconfont icon-xiala"></span></a>
        <div class="filter-box" id="city">
            <a href="#" class="filter-list clearfix" name="province" data-province_name="10000">不限<span class="iconfont icon-selected pull-right"></span></a>
            <volist name="province" id="vo">
                <a href="#" class="filter-list clearfix" name="province" data-province_id="{BEESCRM:$vo.province_id}" data-province_name="{BEESCRM:$vo.province_name}">{BEESCRM:$vo.province_name}</a>
            </volist>
        </div>
        <div class="filter-box" id="wages">
            <p class="filter-list clearfix" name = 'wages' ><input type="hidden" value="10000">不限<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$wages eq 100">checked</if>' name = 'wages' value="100-200"><input type="hidden" value="100">100-200元<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$wages eq 200">checked</if>' name = 'wages'><input type="hidden" value="200">200-400元<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$wages eq 400">checked</if>' name = 'wages'><input type="hidden" value="400">400-600元<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$wages eq 600">checked</if>' name = 'wages'><input type="hidden" value="600">600元以上<span class="iconfont icon-selected pull-right"></span></p>
        </div>
        <div class="filter-box" id="experience">
            <p class="filter-list clearfix" name = 'experience'><input type="hidden" value="10000">不限<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$work_experience eq 1">checked</if>' name = 'experience'><input type="hidden" value="1">1-2年<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$work_experience eq 2">checked</if>' name = 'experience'><input type="hidden" value="2">2-3年<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$work_experience eq 3">checked</if>' name = 'experience'><input type="hidden" value="3">3-4年<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$work_experience eq 4">checked</if>' name = 'experience'><input type="hidden" value="4">4年以上<span class="iconfont icon-selected pull-right"></span></p>
        </div>
        <div class="filter-box" id="age">
            <p class="filter-list clearfix" name = 'age'><input type="hidden" value="10000">不限<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$user_age eq 20">checked</if>' name = 'age'><input type="hidden" value="20">20-25岁<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$user_age eq 25">checked</if>' name = 'age'><input type="hidden" value="25">25-30岁<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$user_age eq 30">checked</if>' name = 'age'><input type="hidden" value="30">30-40岁<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$user_age eq 40">checked</if>' name = 'age'><input type="hidden" value="40">40岁以上<span class="iconfont icon-selected pull-right"></span></p>
        </div>
        <div class="filter-box" id="tag">
            <p class="filter-list clearfix" name = 'tag'>不限<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$tags eq 月嫂">checked</if>' name = 'tag'>月嫂<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$tags eq 保姆">checked</if>' name = 'tag'>保姆<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$tags eq 厨师">checked</if>' name = 'tag'>厨师<span class="iconfont icon-selected pull-right"></span></p>
            <p class='filter-list clearfix <if condition="$tags eq 照顾病人">checked</if>' name = 'tag'>照顾病人<span class="iconfont icon-selected pull-right"></span></p>
        </div>
    </div>
        </form>
    <volist name="data" id="vo">
    <div class="lists clearfix block-top" name="goOrdered">
        <input type="hidden" value="{BEESCRM:$vo.huser_id}">
        <div class="img-box"><img src="{BEESCRM:$vo.image_url}"/></div>
        <div class="info">
            <p><span class="name">{BEESCRM:$vo.real_name}</span> {BEESCRM:$vo.user_age}岁 {BEESCRM:$vo.home_ownership} ￥{BEESCRM:$vo.wages}元/天</p>
            <p>
                <span class="iconfont icon-weibiaoti1 star"></span>
                <span class="iconfont icon-weibiaoti1 star"></span>
                <span class="iconfont icon-weibiaoti1 star"></span>
                <span class="iconfont icon-weibiaoti1"></span>
                <span class="iconfont icon-weibiaoti1"></span>
                {BEESCRM:$vo.work_experience}年经验</p>
            <p><span class="label">
                <if condition="$vo.type eq 1">全职
                    <else/>兼职
                </if>
            </span>
                <if condition="$vo.tags neq ''"><span class="label label-blue">{BEESCRM:$vo[tags]}</span>
                </if>

            </p>
        </div>
        <if condition="$goAppointment eq 1"><a href="#" class="appoint" style="background: #bbb;">您已有预约</a>
            <else/><a href="/Park/huser/detail/huser_id/{BEESCRM:$vo.huser_id}" class="appoint" data-huser_id="{BEESCRM:$vo.huser_id}" id="goAppoint">立即预约</a>
        </if>

    </div>
        </volist>
    </div>
<input type="hidden" value="{BEESCRM:$back_home_ownership}" id="back_home_ownership">
</body>
<script src="/assets/park/huser/js/jquery-2.1.0.min.js"></script>
<script>
    $(function(){
        var height = $(window).height();
        var copyright = $('.copyright').outerHeight();
        $('.wraper').css("minHeight",height);
        $('.wraper').css("paddingBottom",copyright);

        $('.tab-filter').on('click','.tab-list',function(){
            var idx = $(this).index();
            $(this).toggleClass('actived').siblings().removeClass('actived');
            $('.filter-box').eq(idx).toggleClass('show').siblings().removeClass('show');
        })

        $(function () {
            //当点击跳转链接后，回到页面顶部位置
            $("#backtotop").click(function(){
                $('body,html').animate({scrollTop:0},300);
                return false;
            });
        });
    })

    var province_name = '';
    var wages = '';
    var experience = '';
    var age = '';
    var tag = '';
    $("a[name=province]").on('click',function()
    {
        province_name = $(this).data('province_name');//籍贯
        $('#city').hide();
        $('#so_native_place').val(province_name);
        $("#is_form").submit();
    });

    $('p[name=wages]').on('click',function(){
         wages = $(this).find('input').val();//工资
        $('#wages').hide();

        $('#so_wages').val(wages);
        $("#is_form").submit();
    });

    $('p[name=experience]').on('click',function(){
        experience = $(this).find('input').val();//经验
        $('#so_experience').val(experience);
        $("#is_form").submit();
    });

    $('p[name=age]').on('click',function(){
        age = $(this).find('input').val();//年龄
        $('#age').hide();
        $('#so_age').val(age);
        $("#is_form").submit();
    });

    $('p[name=tag]').on('click',function(){
        tag = $(this).text();//标签
        $('#tag').hide();
        $('#so_capacity').val(tag);
        $("#is_form").submit();
    });

    var off = '';
    $('#home_ownership').on('click',function(){
        if(off)
        {
            $('#city').hide();
            off = '';
        }
        else
        {
            $('#city').show();
            off = 1;
        }
    });

    $("div[name=goOrdered]").on('click',function(){
        var isHuser_id = $(this).find('input').val();
        location.href="/Park/huser/detail/huser_id/"+isHuser_id;
    });
    //页面刷新
    function reload(){
        setTimeout('location.reload()',2000);
    }
</script>
</html>
